#include "toolwidget.h"
#include "ui_toolwidget.h"

#include "../viewmodelmanager.h"

ToolWidget::ToolWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::ToolWidget)
{
    ui->setupUi(this);
    connect(ui->networkToolBtn,&QPushButton::clicked,this,[&](){
        ViewModelManager::instance().switchView("NetworkViewModel");
    });

    connect(ui->squareWaveToolBtn,&QPushButton::clicked,this,[&](){
       ViewModelManager::instance().switchView("SquareWaveViewModel");
    });
}

ToolWidget::~ToolWidget()
{
    delete ui;
}
